
import { request } from "@/utils/http"
import type { DepartData} from '@/types/consult'

/**
 * 医生科室列表
 */
export const departmentListApi = () => {
  return request.get<null, DepartData[]>('/dep/all')
}
// 上传图片文件
export const uploadImgApi = (filePath: string)=>{
  return request.upload<null, Image>('/upload', {
    name: 'file',
    filePath
  })
}